import request from "../utils/request";
//获取所有帖子数据
export const getUserFB = () => {
    return request.post('/getUserFB')
}
//搜索数据
export const SUserFB = (data:{data:string}) => {
    return request.post('/SUserFB',data)
}
//删除指定帖子数据
export const deteleUserFB = (data:{_id:string}) => {
    return request.post('/deteleUserFB',data)
}
//获取所有用户接单数据
export const getUserJQ = () => {
    return request.post('/getUserJQ')
}

//获取所有用户接单数据
export const getUser = () => {
    return request.post('/getUser')
}

//获取所有用户接单数据
export const getUserVip = () => {
    return request.post('/getUserVip')
}

//添加FB账号
export const addFB = (data:{data:string,money:string}) => {
    return request.post('/addFB',data)
}

//获取全部FB账号
export const getFB = () => {
    return request.post('/getFB')
}
//删除FB账号
export const deleteFB = (data:{_id:string}) => {
    return request.post('/deleteFB',data)
}

//获取全部公告
export const getAnn = () => {
    return request.post('/getAnn')
}

//添加公告
export const addAnn = (data:{data:string,title:string}) => {
    return request.post('/addAnn',data)
}

//删除公告
export const deleteAnn = (data:{_id:string}) => {
    return request.post('/deleteAnn',data)
}